package src.chap08;
import java.util.Scanner;
public class PP81
{
    public static void main(String[] args) {
        final int limit = 51;
        int num;
        Scanner scan = new Scanner(System.in);
        int[] range=new int[limit];

        System.out.println("输入0-50任意整数：");
        num = scan.nextInt();

        while (num<=50&&num>=0){

            range[num]++;
            System.out.println("输入0-50任意整数：");
            num=scan.nextInt();



        }
        for (int count = 0;count<num;count++){
            System.out.println(count+" "+range[count]);
        }
    }
}
